import {SET_MENU_NAME} from './action_types';

const defalutState = {
  menuName: []
};

export default (state=defalutState, action)=>{
  const {type, name} = action;
  switch (type) {
    case SET_MENU_NAME:
      return {...state, menuName: name};
    default:
      return state;
  }
}
